//
// CPlayListUser.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CPlayListUser {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CPlayListUser(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CPlayListUser obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CPlayListUser(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CPlayListUser(SWIGTYPE_p_NLMISC__CSmartPtrT_NL3D__CAnimationSet_t animationSet) {
    this(nel3dJNI.new_CPlayListUser(SWIGTYPE_p_NLMISC__CSmartPtrT_NL3D__CAnimationSet_t.getCPtr(animationSet)), true);
  }

  public void registerTransform(UTransform object, String prefix) {
    nel3dJNI.CPlayListUser_registerTransform(swigCPtr, this, UTransform.getCPtr(object), object, prefix);
  }

  public void resetAllChannels() {
    nel3dJNI.CPlayListUser_resetAllChannels(swigCPtr, this);
  }

  public void emptyPlayList() {
    nel3dJNI.CPlayListUser_emptyPlayList(swigCPtr, this);
  }

  public void setAnimation(short slot, long animation) {
    nel3dJNI.CPlayListUser_setAnimation(swigCPtr, this, slot, animation);
  }

  public long getAnimation(short slot) {
    return nel3dJNI.CPlayListUser_getAnimation(swigCPtr, this, slot);
  }

  public void setTimeOrigin(short slot, double timeOrigin) {
    nel3dJNI.CPlayListUser_setTimeOrigin(swigCPtr, this, slot, timeOrigin);
  }

  public double getTimeOrigin(short slot) {
    return nel3dJNI.CPlayListUser_getTimeOrigin(swigCPtr, this, slot);
  }

  public void setSpeedFactor(short slot, float speedFactor) {
    nel3dJNI.CPlayListUser_setSpeedFactor(swigCPtr, this, slot, speedFactor);
  }

  public float getSpeedFactor(short slot) {
    return nel3dJNI.CPlayListUser_getSpeedFactor(swigCPtr, this, slot);
  }

  public void setWrapMode(short slot, SWIGTYPE_p_TWrapMode wrapMode) {
    nel3dJNI.CPlayListUser_setWrapMode(swigCPtr, this, slot, SWIGTYPE_p_TWrapMode.getCPtr(wrapMode));
  }

  public SWIGTYPE_p_TWrapMode getWrapMode(short slot) {
    return new SWIGTYPE_p_TWrapMode(nel3dJNI.CPlayListUser_getWrapMode(swigCPtr, this, slot), true);
  }

  public void setStartWeight(short slot, float startWeight, double time) {
    nel3dJNI.CPlayListUser_setStartWeight(swigCPtr, this, slot, startWeight, time);
  }

  public float getStartWeight(short slot, SWIGTYPE_p_double time) {
    return nel3dJNI.CPlayListUser_getStartWeight(swigCPtr, this, slot, SWIGTYPE_p_double.getCPtr(time));
  }

  public void setEndWeight(short slot, float endWeight, double time) {
    nel3dJNI.CPlayListUser_setEndWeight(swigCPtr, this, slot, endWeight, time);
  }

  public float getEndWeight(short slot, SWIGTYPE_p_double time) {
    return nel3dJNI.CPlayListUser_getEndWeight(swigCPtr, this, slot, SWIGTYPE_p_double.getCPtr(time));
  }

  public void setWeightSmoothness(short slot, float smoothness) {
    nel3dJNI.CPlayListUser_setWeightSmoothness(swigCPtr, this, slot, smoothness);
  }

  public float getWeightSmoothness(short slot) {
    return nel3dJNI.CPlayListUser_getWeightSmoothness(swigCPtr, this, slot);
  }

  public void setWeight(short slot, float weight) {
    nel3dJNI.CPlayListUser_setWeight(swigCPtr, this, slot, weight);
  }

  public float getLocalTime(short slot, double globalTime, UAnimationSet animSet) {
    return nel3dJNI.CPlayListUser_getLocalTime(swigCPtr, this, slot, globalTime, UAnimationSet.getCPtr(animSet), animSet);
  }

  public float getLocalWeight(short slot, double globalTime) {
    return nel3dJNI.CPlayListUser_getLocalWeight(swigCPtr, this, slot, globalTime);
  }

  public void setSkeletonWeight(short slot, long skeletonId, boolean inverted) {
    nel3dJNI.CPlayListUser_setSkeletonWeight__SWIG_0(swigCPtr, this, slot, skeletonId, inverted);
  }

  public void setSkeletonWeight(short slot, long skeletonId) {
    nel3dJNI.CPlayListUser_setSkeletonWeight__SWIG_1(swigCPtr, this, slot, skeletonId);
  }

  public long getSkeletonWeight(short slot, SWIGTYPE_p_bool inverted) {
    return nel3dJNI.CPlayListUser_getSkeletonWeight(swigCPtr, this, slot, SWIGTYPE_p_bool.getCPtr(inverted));
  }

  public void enableChannel(long channelId, boolean enable) {
    nel3dJNI.CPlayListUser_enableChannel(swigCPtr, this, channelId, enable);
  }

  public boolean isChannelEnabled(long channelId) {
    return nel3dJNI.CPlayListUser_isChannelEnabled(swigCPtr, this, channelId);
  }

  public void evalPlayList(double playTime) {
    nel3dJNI.CPlayListUser_evalPlayList(swigCPtr, this, playTime);
  }

}
